package com.yssw.model.vo.product;

import com.yssw.product.domain.ProductClass;
import lombok.*;

import java.util.List;

/**
 * @Author KnockingFarmers
 * @Date 2023/3/27 14:48
 * @PackageName:com.yssw.model.vo.product
 * @ClassName: ProductClassVo
 * @Description: TODO
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
public class ProductClassVo extends ProductClass {

    private Long value;
    private String label;




    private Long id;
    private String className;

    private List<ProductClassVo> children;

    @Override
    public Long getId() {
        return this.value;
    }


    @Override
    public String getClassName() {
        return this.label;
    }
}
